package com.coder.shop.dao.model;

import java.io.Serializable;
import java.util.Date;

public class ShopGoods implements Serializable {
    /**
     * id
     *
     * @mbg.generated
     */
    private Long id;

    /**
     * 商品名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 分类_id
     *
     * @mbg.generated
     */
    private Integer typeId;

    /**
     * 品牌_id
     *
     * @mbg.generated
     */
    private Integer brandId;

    /**
     * 商品重量(g)
     *
     * @mbg.generated
     */
    private Double weight;

    /**
     * 是否上架(1：上架，2：下架)
     *
     * @mbg.generated
     */
    private Boolean isShelf;

    /**
     * 可得积分
     *
     * @mbg.generated
     */
    private Integer score;

    /**
     * 警戒库存
     *
     * @mbg.generated
     */
    private Integer alertStock;

    /**
     * 页面标题
     *
     * @mbg.generated
     */
    private String pageTitle;

    /**
     * 页面关键词
     *
     * @mbg.generated
     */
    private String pageKewords;

    /**
     * 页面描述
     *
     * @mbg.generated
     */
    private String pageDescripte;

    /**
     * 分享内容
     *
     * @mbg.generated
     */
    private String shareContent;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date lastUpdateTime;

    /**
     * 商品详情
     *
     * @mbg.generated
     */
    private String details;

    /**
     * 售后服务
     *
     * @mbg.generated
     */
    private String afterSaleServices;
    
    /**
     * 图片路径
     */
    private String picPath;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Boolean getIsShelf() {
        return isShelf;
    }

    public void setIsShelf(Boolean isShelf) {
        this.isShelf = isShelf;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getAlertStock() {
        return alertStock;
    }

    public void setAlertStock(Integer alertStock) {
        this.alertStock = alertStock;
    }

    public String getPageTitle() {
        return pageTitle;
    }

    public void setPageTitle(String pageTitle) {
        this.pageTitle = pageTitle;
    }

    public String getPageKewords() {
        return pageKewords;
    }

    public void setPageKewords(String pageKewords) {
        this.pageKewords = pageKewords;
    }

    public String getPageDescripte() {
        return pageDescripte;
    }

    public void setPageDescripte(String pageDescripte) {
        this.pageDescripte = pageDescripte;
    }

    public String getShareContent() {
        return shareContent;
    }

    public void setShareContent(String shareContent) {
        this.shareContent = shareContent;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getAfterSaleServices() {
        return afterSaleServices;
    }

    public void setAfterSaleServices(String afterSaleServices) {
        this.afterSaleServices = afterSaleServices;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", typeId=").append(typeId);
        sb.append(", brandId=").append(brandId);
        sb.append(", weight=").append(weight);
        sb.append(", isShelf=").append(isShelf);
        sb.append(", score=").append(score);
        sb.append(", alertStock=").append(alertStock);
        sb.append(", pageTitle=").append(pageTitle);
        sb.append(", pageKewords=").append(pageKewords);
        sb.append(", pageDescripte=").append(pageDescripte);
        sb.append(", shareContent=").append(shareContent);
        sb.append(", createTime=").append(createTime);
        sb.append(", lastUpdateTime=").append(lastUpdateTime);
        sb.append(", details=").append(details);
        sb.append(", afterSaleServices=").append(afterSaleServices);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ShopGoods other = (ShopGoods) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
            && (this.getBrandId() == null ? other.getBrandId() == null : this.getBrandId().equals(other.getBrandId()))
            && (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight()))
            && (this.getIsShelf() == null ? other.getIsShelf() == null : this.getIsShelf().equals(other.getIsShelf()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getAlertStock() == null ? other.getAlertStock() == null : this.getAlertStock().equals(other.getAlertStock()))
            && (this.getPageTitle() == null ? other.getPageTitle() == null : this.getPageTitle().equals(other.getPageTitle()))
            && (this.getPageKewords() == null ? other.getPageKewords() == null : this.getPageKewords().equals(other.getPageKewords()))
            && (this.getPageDescripte() == null ? other.getPageDescripte() == null : this.getPageDescripte().equals(other.getPageDescripte()))
            && (this.getShareContent() == null ? other.getShareContent() == null : this.getShareContent().equals(other.getShareContent()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getLastUpdateTime() == null ? other.getLastUpdateTime() == null : this.getLastUpdateTime().equals(other.getLastUpdateTime()))
            && (this.getDetails() == null ? other.getDetails() == null : this.getDetails().equals(other.getDetails()))
            && (this.getAfterSaleServices() == null ? other.getAfterSaleServices() == null : this.getAfterSaleServices().equals(other.getAfterSaleServices()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
        result = prime * result + ((getBrandId() == null) ? 0 : getBrandId().hashCode());
        result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode());
        result = prime * result + ((getIsShelf() == null) ? 0 : getIsShelf().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getAlertStock() == null) ? 0 : getAlertStock().hashCode());
        result = prime * result + ((getPageTitle() == null) ? 0 : getPageTitle().hashCode());
        result = prime * result + ((getPageKewords() == null) ? 0 : getPageKewords().hashCode());
        result = prime * result + ((getPageDescripte() == null) ? 0 : getPageDescripte().hashCode());
        result = prime * result + ((getShareContent() == null) ? 0 : getShareContent().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode());
        result = prime * result + ((getDetails() == null) ? 0 : getDetails().hashCode());
        result = prime * result + ((getAfterSaleServices() == null) ? 0 : getAfterSaleServices().hashCode());
        return result;
    }
}